package com.bw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SysDictType {

    /**
     * 字典外键
     */
    @TableId(type = IdType.AUTO)
    private Integer dictId;

    /**
     * 字典名称
     */
    private String dictName;

    /**
     * 字典类型
     */
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 创建者
     */
    private String createBy;

    /**
     *创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     *更新者
     */
    private String updateBy;

    /**
     *更新时间
     */
    private Date updateTime;

    /**
     *备注
     */
    private String remark;

    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private String dictCode;

    @TableField(exist = false)
    private String dictLabel;

    @TableField(exist = false)
    private String dictValue;

    @TableField(exist = false)
    private String dictSort;

    @TableField(exist = false)
    private String cssClass;

    @TableField(exist = false)
    private String listClass;

    @TableField(exist = false)
    private String isDefault;

    /**
     * 图片
     */
    private String pic;

}
